import numpy as np

# 将下面两个列表元素相减
x1 = [[1, 2, 3, 4, 5], [6,7,8,9,10]]
y1 = [[1, 2, 3, 4, 5], [6,7,8,9,10]]
def sub_list(x1, y1):
    return np.subtract(x1, y1)
print(sub_list(x1, y1))

# 将下面两个列表元素相加
def add_list(x2, y2):
    return np.add(x2, y2)
print(add_list(x1, y1))